package com.wicket.okrapp.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wicket.okrapp.common.dto.FieldInfo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wicket.okrapp.base.service.MOmsTargetCyclePlanSetService;
import com.wicket.okrapp.common.exception.BizException;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import com.wicket.okrapp.dal.mapper.mbg.OmsTargetCyclePlanSetMapper;
import com.wicket.okrapp.dal.po.mbg.OmsTargetCyclePlanSet;
import com.wicket.okrapp.base.service.dto.req.*;
//import com.wicket.okrapp.base.service.dto.res.*;

import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;

import java.util.*;
import java.util.stream.Collectors;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ：
 * @since 2022/1/19 15:39
 *
 *
 * @version 1.0
 */
@Service
public class MOmsTargetCyclePlanSetServiceImpl
  extends ServiceImpl<OmsTargetCyclePlanSetMapper, OmsTargetCyclePlanSet>
  implements MOmsTargetCyclePlanSetService {

  @Autowired
  OmsTargetCyclePlanSetMapper omsTargetCyclePlanSetMapper;
/**
   * 3-3-08新增目标周期规划设置[3367]
   * gen by moon at 10/15/2022, 10:06:04 PM
   */
 @Trace(operationName = "3-3-08新增目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  String  addTargetCyclePset(OmsTargetCyclePlanSet omsTargetCyclePlanSet) {
     omsTargetCyclePlanSet.setTargetCyclePlanSetId(CommonFunctionHelper.getUid());//DISTRIBUTED_ID
omsTargetCyclePlanSet.setBatchEndtTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME
omsTargetCyclePlanSet.setIsUpdate("TRUE");
omsTargetCyclePlanSet.setUpdateStatus("NEW");
omsTargetCyclePlanSet.setArchivngType("NOT_ARCHIVE");
omsTargetCyclePlanSet.setIsEditing("TRUE");
omsTargetCyclePlanSet.setIsArchive("FALSE");
omsTargetCyclePlanSet.setSubjectLifeCycle("EDITING");
omsTargetCyclePlanSet.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsTargetCyclePlanSet.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsTargetCyclePlanSet.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsTargetCyclePlanSet.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
omsTargetCyclePlanSet.setIsValid("FALSE");
omsTargetCyclePlanSet.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
omsTargetCyclePlanSet.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
     if(super.save(omsTargetCyclePlanSet)){
        return omsTargetCyclePlanSet.getTargetCyclePlanSetId();
     }else {
        return "-1";
     }
    
  }
/**
   * 3-3-08查询目标周期规划设置详情[3368]
   * gen by moon at 3/30/2023, 12:39:25 PM
   */
 @Trace(operationName = "3-3-08查询目标周期规划设置详情")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  OmsTargetCyclePlanSet  queryTargetCyclePsetDetail(QueryTargetCyclePsetDetailReq reqDto) {
     
        try {
         reqDto.setIsValid("FALSE");
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap, new ArrayList<>());
            queryWrapper.orderByDesc("create_time");
            List<OmsTargetCyclePlanSet> retList = super.list(queryWrapper);
            if(retList!=null && retList.size()>0){
                OmsTargetCyclePlanSet retData = retList.get(0);
                
                return retData;
            }
            return null;
      } catch (Exception e) {
          e.printStackTrace();
          throw new BizException("-1",e,false);
      }
  }
/**
   * 3-3-08批量增目标周期规划设置[3595]
   * gen by moon at 10/15/2022, 10:06:05 PM
   */
 @Trace(operationName = "3-3-08批量增目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchAddTargetCyclePset(List<OmsTargetCyclePlanSet> omsTargetCyclePlanSet) {
     
      if(omsTargetCyclePlanSet==null || omsTargetCyclePlanSet.size()==0){
        return false;
      }
      
      return super.saveBatch(omsTargetCyclePlanSet.stream().map(item->{
       item.setTargetCyclePlanSetId(CommonFunctionHelper.getUid());//DISTRIBUTED_ID
item.setBatchEndtTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME
item.setIsUpdate("TRUE");
item.setUpdateStatus("NEW");
item.setArchivngType("NOT_ARCHIVE");
item.setIsEditing("TRUE");
item.setIsArchive("FALSE");
item.setSubjectLifeCycle("EDITING");
item.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
item.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
item.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
item.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
item.setIsValid("FALSE");
item.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
item.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
          return item;
      }).collect(Collectors.toList()));
  }
/**
   * 3-3-08批量改目标周期规划设置[3596]
   * gen by moon at 10/15/2022, 10:06:06 PM
   */
 @Trace(operationName = "3-3-08批量改目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchUpdateTargetCyclePset(List<OmsTargetCyclePlanSet> omsTargetCyclePlanSet) {
     
      if(omsTargetCyclePlanSet==null || omsTargetCyclePlanSet.size()==0){
        return false;
      }
        return super.saveOrUpdateBatch(omsTargetCyclePlanSet);
      
  }
/**
   * 3-3-08查询目标周期规划设置列表[3679]
   * gen by moon at 10/15/2022, 10:06:07 PM
   */
 @Trace(operationName = "3-3-08查询目标周期规划设置列表")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsTargetCyclePlanSet>  queryTargetCyclePsetList(QueryTargetCyclePsetListReq reqDto) {
     
        try {
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
            
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsTargetCyclePlanSet.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsTargetCyclePlanSet>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * 3-3-08批量删目标周期规划设置[3680]
   * gen by moon at 10/15/2022, 10:06:10 PM
   */
 @Trace(operationName = "3-3-08批量删目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  batchDeleteTargetCyclePset(List<String> reqDto) {
     
          if(reqDto==null || reqDto.size()==0){
            return false;
          }
          
          return super.removeByIds(reqDto);
  }
/**
   * 3-3-08批量查询目标周期规划设置[4120]
   * gen by moon at 10/15/2022, 10:06:12 PM
   */
 @Trace(operationName = "3-3-08批量查询目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsTargetCyclePlanSet>  batchQueryTargetCyclePset(BatchQueryTargetCyclePsetReq reqDto) {
     
        try {
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
reqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID
            if(reqDto.getTargetCyclePsetList()==null || reqDto.getTargetCyclePsetList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("eva_obj_target_cycle_id", reqDto.getTargetCyclePsetList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsTargetCyclePlanSet.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);
            
            return ((List<OmsTargetCyclePlanSet>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * M3-3-08删除目标周期规划设置测试[4430]
   * gen by moon at 10/15/2022, 10:06:14 PM
   */
 @Trace(operationName = "M3-3-08删除目标周期规划设置测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  deleteTargetCyclePlanSetTest(String targetCyclePlanSetId ) {
     
      return super.removeById(targetCyclePlanSetId);
  }
/**
   * M3-3-08查询目标周期规划设置测试详情[4463]
   * gen by moon at 5/22/2023, 4:07:20 PM
   */
 @Trace(operationName = "M3-3-08查询目标周期规划设置测试详情")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  OmsTargetCyclePlanSet  queryTargetCyclePlanSetTestDetail(QueryTargetCyclePlanSetTestDetailReq reqDto) {
     
        try {
         
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap, new ArrayList<>());
            queryWrapper.orderByDesc("create_time");
            List<OmsTargetCyclePlanSet> retList = super.list(queryWrapper);
            if(retList!=null && retList.size()>0){
                OmsTargetCyclePlanSet retData = retList.get(0);
                
                return retData;
            }
            return null;
      } catch (Exception e) {
          e.printStackTrace();
          throw new BizException("-1",e,false);
      }
  }
/**
   * 3-3-08修改目标周期规划设置[6293]
   * gen by moon at 4/16/2023, 4:47:14 PM
   */
 @Trace(operationName = "3-3-08修改目标周期规划设置")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  updateTargetCyclePset(OmsTargetCyclePlanSet omsTargetCyclePlanSet) {
     omsTargetCyclePlanSet.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsTargetCyclePlanSet.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
        return super.updateById(omsTargetCyclePlanSet);
  }
/**
   * 3-3-08批量查询目标周期规划设置列表By设置Id[6813]
   * gen by moon at 5/17/2023, 3:49:14 AM
   */
 @Trace(operationName = "3-3-08批量查询目标周期规划设置列表By设置Id")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsTargetCyclePlanSet>  batchQueryTargetCyclePsetListByIds(BatchQueryTargetCyclePsetListByIdsReq reqDto) {

        try {
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
            if(reqDto.getTargetCyclePsetList()==null || reqDto.getTargetCyclePsetList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("target_cycle_plan_set_id", reqDto.getTargetCyclePsetList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsTargetCyclePlanSet.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);

            return ((List<OmsTargetCyclePlanSet>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * M3修改目标周期规划设置测试[6923]
   * gen by moon at 5/22/2023, 4:07:21 PM
   */
 @Trace(operationName = "M3修改目标周期规划设置测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  boolean  updateTargetCyclePlanSetTest(OmsTargetCyclePlanSet omsTargetCyclePlanSet) {
     omsTargetCyclePlanSet.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID
omsTargetCyclePlanSet.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME
        return super.updateById(omsTargetCyclePlanSet);
  }
/**
   * 3-3-08批量查目标周期规划设置列表By（开始时间小于等于）[7397]
   * gen by moon at 11/5/2023, 11:10:14 AM
   */
 @Trace(operationName = "3-3-08批量查目标周期规划设置列表By（开始时间小于等于）")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsTargetCyclePlanSet>  batchQueryStartTimeByTargetCyclePsetListByIds(BatchQueryStartTimeByTargetCyclePsetListByIdsReq reqDto) {

        try {
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
            if(reqDto.getTargetCyclePsetList()==null || reqDto.getTargetCyclePsetList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("eva_obj_target_cycle_id", reqDto.getTargetCyclePsetList());
// TODO: 2023/9/16  
            if(reqDto.getTargetActualStartTime()!=null ){
                queryWrapper.le("target_actual_start_time",reqDto.getTargetActualStartTime());
                reqDto.setTargetActualStartTime(null);
            }

            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsTargetCyclePlanSet.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);

            return ((List<OmsTargetCyclePlanSet>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }
/**
   * 3-3-08查询开始时间匹配目标周期规划设置详情[7444]
   * gen by moon at 9/25/2023, 6:42:05 PM
   */
 @Trace(operationName = "3-3-08查询开始时间匹配目标周期规划设置详情")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  OmsTargetCyclePlanSet  queryStartTimeByTargetCyclePsetDetail(QueryStartTimeByTargetCyclePsetDetailReq reqDto) {

        try {
         reqDto.setIsValid("FALSE");


            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            Map<String, Object> fieldInfoMap = null;
            if(reqDto.getTargetActualStartTime()!=null ){
                queryWrapper.le("target_actual_start_time",reqDto.getTargetActualStartTime());
              reqDto.setTargetActualStartTime(null);

            }

            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap, new ArrayList<>());
            queryWrapper.orderByDesc("create_time");
            List<OmsTargetCyclePlanSet> retList = super.list(queryWrapper);
            if(retList!=null && retList.size()>0){
                OmsTargetCyclePlanSet retData = retList.get(0);

                return retData;
            }
            return null;
      } catch (Exception e) {
          e.printStackTrace();
          throw new BizException("-1",e,false);
      }
  }
/**
   * M3批量查询目标周期规划设置测试[7866]
   * gen by moon at 11/9/2023, 10:15:17 PM
   */
 @Trace(operationName = "M3批量查询目标周期规划设置测试")
 @Tags({@Tag(key = "参数",value = "arg[0]"),
 @Tag(key = "返回值",value = "returnedObj")})
  @Override
  @Transactional(rollbackFor=Exception.class)
  public  List<OmsTargetCyclePlanSet>  batchQueryTargetCyclePlanSetTest(BatchQueryTargetCyclePlanSetTestReq reqDto) {

        try {
            QueryWrapper<OmsTargetCyclePlanSet> queryWrapper = new QueryWrapper<>();
            reqDto.setIsValid("FALSE");
            if(reqDto.getTargetCyclePsetList()==null || reqDto.getTargetCyclePsetList().isEmpty()){
                    return new ArrayList<>();
                }
        queryWrapper.in("eva_obj_target_cycle_id", reqDto.getTargetCyclePsetList());
            Map<String, Object> fieldInfoMap = null;
            fieldInfoMap = CommonFunctionHelper.objectToMapForLamBda(reqDto);
            List<FieldInfo> compareList = CommonFunctionHelper.getRangeField(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperCompare(queryWrapper, compareList, fieldInfoMap);
            List<FieldInfo> likeList = CommonFunctionHelper.getLikeFiled(OmsTargetCyclePlanSet.class);
            CommonFunctionHelper.buildQueryWrapperLike(queryWrapper,likeList,fieldInfoMap);
            likeList.addAll(compareList);
            CommonFunctionHelper.buildQueryWrapperEq(queryWrapper, fieldInfoMap,likeList);
            List<FieldInfo> orderList = CommonFunctionHelper.getOrderList(OmsTargetCyclePlanSet.class);
            //CommonFunctionHelper.buildQueryWrapperOrder(queryWrapper, orderList);

            return ((List<OmsTargetCyclePlanSet>) super.list(queryWrapper));
        } catch (Exception e) {
            e.printStackTrace();
            throw new BizException("-1",e,false);
        }
  }

}

